import re

if __name__ == "__main__":
    url = "https://images.unsplash.com/photo-1682771843314-111d312c4ecf?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHx0b3BpYy1mZWVkfDF8Ym84alFLVGFFMFl8fGVufDB8fHx8&w=1000&q=80"
    url = re.sub("&[wq].*", "", url)
    print(url)